/************************************************************************
* Programmer:  Philippe Gambling
*
* Course:  CSCI 4534
*
* Date:  March 10, 2009
*
* Environment:  GCC 3.2.2 running on diamond.rocks.uhcl.edu
*
* Files Included: pcb.h
*
* Purpose:  Implements supporting functions for pcb struct.
*
***********************************************************************/ 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "pcb.h"

void PCB_Print(const PCB * ptr)
{
/************************************************************************
* Purpose:  To print contents of a PCB struct.
*
* Parameters:  Target PCB
*
* Action:  Prints each variable in PCB in a human readable form.
*
***********************************************************************/
  printf("        ClientFifoName: %s\n",ptr->ClientFifoName);
  printf("        Pid: %d\n",ptr->Pid);
  printf("        CpuBurst: %d\n",ptr->CpuBurst);
  printf("        ArrivalTime: %d\n",ptr->ArrivalTime);
  printf("        CompletionTime: %d\n",ptr->CompletionTime);
  printf("        WaitTime: %d\n",ptr->WaitTime);
  printf("        TurnaroundTime: %d\n",ptr->TurnaroundTime);                
}
